﻿@using _12._30._2014_MVC.Models;
@model StarWarsViewModel
@{
    ViewBag.Title = "ViewCharacters";
}

<h2>ViewCharacters</h2>

<div>
    <label>Bounty Hunters</label>
    @foreach(var bh in Model.Characters.OfType<BountyHunter>())
    {
        <div>@bh.Type</div>
    }
</div>

<div>
    <label>Jedi</label>
    @foreach (var j in Model.Characters.OfType<Jedi>())
    {
        <div>@j.Type</div>
    }
</div>